﻿<%@ Page Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true"
 CodeBehind="Administracion.aspx.cs" Inherits="Administracion" 
 Title="Página sin título" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<div>

        <script type="text/javascript" src="Anexo2.js"></script>

       
        <div style="" align="left">
            <asp:Button ID="BtnNuevo" runat="server" Text="Nuevo" CssClass="accordionHeader"
                Height="25px" OnClick="BtnNuevo_Click" />
            <asp:Button ID="BtnGuardar" runat="server" ValidationGroup="Validador" CausesValidation="true"
                Text="Guardar" CssClass="accordionHeader" Height="25px" OnClick="BtnGuardar_Click"
                Visible="False" />
            <asp:Button ID="BtnEliminar" runat="server" Text="Eliminar" CssClass="accordionHeader"
                Height="25px" OnClick="BtnEliminar_Click" Visible="False" />
            <asp:Button ID="BtnRegresar" runat="server" CssClass="accordionHeader" Height="25px"
                Text="Regresar" OnClick="BtnRegresar_Click" />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        
         <asp:Label ID="LblMensualidad" runat="server" Text="Costo de Mensualidad:"></asp:Label>
            
            <asp:TextBox ID="TxtMensualidad" runat="server"></asp:TextBox>
            
            <asp:Label ID="Label2" runat="server" Text="Costo Recargo:"></asp:Label>
            
            <asp:TextBox ID="TxtRecargo" runat="server"></asp:TextBox>
         
            
           &nbsp;&nbsp;
         
            
           <asp:Button ID="BtnModificarMontos" runat="server" CssClass="accordionHeader" 
                Height="25px" Text="Modificar Montos" Width="117px" 
                onclick="BtnModificarMontos_Click" 
                ToolTip="Modifica el costo de la mensualidad y el costo del recargo." />
    
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:LinkButton ID="LinkBAdministracion" runat="server" 
                PostBackUrl="~/RegistroPrincipal/RegistrarClientes.aspx">&lt;&lt;-- ALUMNOS</asp:LinkButton>
        </div>
        <asp:Panel ScrollBars="None" ID="PnlGrid" runat="server" Visible="true" Height="400px">
            <asp:GridView ID="GrdRegistros" runat="server" DataKeyNames="IdUsuarioSist" AutoGenerateColumns="False"
                OnRowDataBound="GrdRegistros_DataBound" OnPreRender="GrdRegistros_PreRender"
                CellPadding="4" ForeColor="#333333" PageSize="100000" Style="width: 100%;" OnSelectedIndexChanged="GrdRegistros_SelectedIndexChanged">
                <RowStyle BackColor="#EFF3FB" />
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <EditRowStyle BackColor="#2461BF" />
                <AlternatingRowStyle BackColor="White" />
                <Columns>
                    <asp:CommandField ButtonType="Image" SelectImageUrl="~/imagenes/Iconos/btn_visualizar.png"
                        ShowSelectButton="True" />
                        
                    <asp:BoundField DataField="Nombre" HeaderText="NOMBRE" />
                    <asp:BoundField DataField="Password" HeaderText="Password" />
                      <asp:BoundField DataField="Roll" HeaderText="Roll" />
                  
                </Columns>
            </asp:GridView>
        </asp:Panel>
        
        
        <asp:Panel ScrollBars="Auto" ID="pnlDetailsView" runat="server" Height="316px" Width="800px"
            Visible="true">
            <asp:DetailsView ID="DvRegiostro" runat="server" DataKeyNames="IdUsuarioSist" ForeColor="#333333"
                Width="100%" Height="204px" EditRowStyle-HorizontalAlign="Left" EditRowStyle-Width="70%"
                FieldHeaderStyle-Width="30%" FieldHeaderStyle-HorizontalAlign="Right" AutoGenerateRows="False"
                FooterText=".">
                <Fields>
                    <asp:TemplateField HeaderText="NOMBRE:">
                        <EditItemTemplate>
                            <asp:TextBox ID="TxtNombre" runat="server" Text='<%# Bind("Nombre") %>' Width="300px"
                                MaxLength="100"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RFVNombre" runat="server" ValidationGroup="Validador"
                                ErrorMessage="Introduzca la Nombre" ControlToValidate="TxtNombre">*</asp:RequiredFieldValidator>
                        </EditItemTemplate>
                        <ItemStyle HorizontalAlign="Left" />
                        <HeaderStyle HorizontalAlign="Right" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Password">
                      <EditItemTemplate>
                            <asp:TextBox ID="TxtPassword" runat="server" Text='<%# Bind("Password") %>' Width="300px"
                                MaxLength="100"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RFVPassword" runat="server" ValidationGroup="Validador"
                                ErrorMessage="Introduzca el Password" ControlToValidate="TxtPassword">*</asp:RequiredFieldValidator>
                        </EditItemTemplate>
                        <ItemStyle HorizontalAlign="Left" />
                        <HeaderStyle HorizontalAlign="Right" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Roll">
                        <EditItemTemplate>
                            <asp:DropDownList ID="DdlRoll" runat="server">
                                <asp:ListItem>Administrador</asp:ListItem>
                                <asp:ListItem>Cobrador</asp:ListItem>
                            </asp:DropDownList>
                        </EditItemTemplate>
                    </asp:TemplateField>
                </Fields>
                <RowStyle BackColor="#EFF3FB" />
                <FieldHeaderStyle HorizontalAlign="Right" Width="30%" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <EditRowStyle HorizontalAlign="Left" Width="70%" />
                <AlternatingRowStyle BackColor="White" />
            </asp:DetailsView>
        </asp:Panel>
        
        
    </div>

</asp:Content>
